package com.demo.service;

import com.demo.common.RoutDbInterceptor;
import com.demo.common.RoutDb;
import com.demo.common.RoutDbKit;
import com.jfinal.aop.Before;

@RoutDb(value = "main", size = 6, expr = "#(dsName+'_'+random(size))")
@Before(RoutDbInterceptor.class)
public class TestService {
    public void test() {
        String dbName = RoutDbKit.getDbName();
        System.out.println("dbName:->" + dbName);
    }
}
